package fms.core.uplinkmsg;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created with IntelliJ IDEA.
 * User: adcc
 * Date: 14-6-10
 * Time: 下午2:48
 * To change this template use File | Settings | File Templates.
 */
@XmlRootElement(name="acars")
@XmlAccessorType(XmlAccessType.FIELD)  // 必须要添加这个注解，类中的元素注解才能别识别，否则序列化时报异常
public class UplinkMsgProtocol extends AcarsProtocol {

    @XmlElement(name = "Body")
    public UplinkMsgProtocolBody body;

    public UplinkMsgProtocol(){
        UplinkMessage uplinkMessage = new UplinkMessage();
        //uplinkMessage.setData(new UplinkMessageData());
        //uplinkMessage.setHead(new UplinkMsgHead());
        uplinkMessage.setMsg("");
        body = new UplinkMsgProtocolBody();
        body.uplinkMessage = uplinkMessage;
    }
}
